Date: 2013-08-19
Author: Sebastian Kranz
An R based GUI to use Maxima as computer algebra system for Lyx. Only tested for windows. Maxima must be installed seperately and be available in PATH.
Sorry, so far the package is only tested under windows. You first must install Maxima separately. You should also add the /bin directory of Maxima to the Windows PATH variable.
You can install the package from GitHub in the usual fashion.
library(devtools) install_github(repo="restorepoint", username="skranz") install_github(repo="stringtools", username="skranz") install_github(repo="RMaxima", username="skranz") install_github(repo="LyxMaxima", username="skranz")
library(LyxMaxima) # Should open a cmd window (Maxima pipe) and a tcltk window (GUI) start.LyxMaxima(init=TRUE, LYXCAS.PATH = "C:/libraries/LyxMaxima/LyxMaxima/") # Test a simplification of latex code lyx.go(txt = "5+\\frac{x^2+x^2}{1+\\frac{2}{x*5}}*2")
Variables can have 3 main representations:
1. Latex original : y, u_{1}(x_{L}), \alpha_{1}, \alpha_{\beta}^{2}(\gamma,x,\delta) 2. Latex canonical: y, u_{1L} , \alpha_{1}, \alpha_{\beta2\gamma x\delta} 3. Maxima : y, u_1L , alpha_1 , alpha_beta2gammaxdelta
The user has to specify a canonical form for every variable that appears and is not in canonical form in the section #DEFINE We can assign several Latex original versions to one Latex canonical. Example:
u_{1}^{L} and u_{1}(x_{L}) can both have form u_{1L}
But every Latex original must have a unique canonical. The program creates a one-to-one mapping between Latex canonical and Maxima
We use many functions from RMaxima and stringtools. See the description there for details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.